package cn.minhx.domain.activity.service.trial;

import cn.minhx.domain.activity.adapter.IActivityRepository;
import cn.minhx.domain.activity.model.entity.MarketProductEntity;
import cn.minhx.domain.activity.model.entity.TrialBalanceEntity;
import cn.minhx.domain.activity.service.trial.factory.DefaultActivityStrategyFactory;
import cn.minhx.types.design.tree.AbstractMultiThreadStrategyRouter;
import jakarta.annotation.Resource;

/**
 * 拼团营销支撑抽象类
 *
 * @author minhx
 */
public abstract class AbstractGroupBuyMarketSupport
		extends
			AbstractMultiThreadStrategyRouter<MarketProductEntity, DefaultActivityStrategyFactory.DynamicContext, TrialBalanceEntity> {

	@Resource
	protected IActivityRepository repository;

	protected static final int TASK_TIMOUT_SECONDS = 10;

	@Override
	protected void loadContext(MarketProductEntity requestParameter,
			DefaultActivityStrategyFactory.DynamicContext dynamicContext) throws Exception {
		// default do nothing
	}
}
